//设置打印参数
function Receipt_Printformset(htmlcode,type) {
	/* type = "huizhi" 表示 回执和轧帐总数打印
	 * type = "gazhangqd" 表示 轧帐清单打印
	 * 设置打印的格式
	 * 设置回单纸张的类型 (设置单联回单A4纸张(纵向))
	 * 调用PrintFormSet();
	 * 返回0表示设置成功，返回-1表示设置失败
	 * **/
	var printFormSet1 = "";
	if(type == "huizhi") {
		printFormSet1 = ZKJCNonStdEqpt.PrintFormSet("","ReceiptPaperType","PTR_PAPER_L5",0);
	}
	
	if(type == "gazhangqdsz") {
		printFormSet1 = ZKJCNonStdEqpt.PrintFormSet("","ReceiptPaperType","PTR_PAPER_L5",0);
	}
	
	if(type == "gazhangqd") {
		printFormSet1 = ZKJCNonStdEqpt.PrintFormSet("","ReceiptPaperType","PTR_PAPER_L4",0);
	}
	
	if(type == "hddy") {
		printFormSet1 = ZKJCNonStdEqpt.PrintFormSet("","ReceiptPaperType","PTR_PAPER_L3",0);
	}
	
	if(type == "gazhangzs") {
		printFormSet1 = ZKJCNonStdEqpt.PrintFormSet("","ReceiptPaperType","PTR_PAPER_LOP4",0);
	}
	//设置纵向的或者是横向的(设置成纵向)
	//var printFormSet3 = ZKJCNonStdEqpt.PrintFormSet("","Orientation","PORTRAIT",0);
	
	//设置该批任务是否需要盖章(设置需要盖章)
	var printFormSet2 = ZKJCNonStdEqpt.PrintFormSet("","IsStamp","1",0);
	
	//设置传入的打印内容（html内容）
	var printFormSet3 = ZKJCNonStdEqpt.PrintFormSet("","PrintData",""+htmlcode+"",0);
	
	/*仅出现这种情况才表明设置成功，然后清楚数据操作
	 **/
	if(printFormSet1 == "0" && printFormSet3 == "0" && printFormSet2 == "0") {
		return '0';
	} else {
		//出现超出意料的错误，表明设置打印格式失败，跳转至设备故障页面
		//alert("格式设置失败000");
		return '-1';
	}
}

//打印
function Receipt_Printform () {
	var printForm = ZKJCNonStdEqpt.PrintForm("",0);
	return printForm;
}

var gazhang_huizong = false;
function get_gazhang_huizong(){
	return gazhang_huizong;
}

function paperprint_start(){
	gazhang_huizong = false;
}
//打印
function paperprint_ok(page,page_count){
	gazhang_huizong = true;
}









